package indi.fritz.bigmap.common;

import java.util.List;

public class Page<T> {
	
	private List<T> data;
	private long cursor;
	private int pageSize;
	private long count;
	
	public Page() { }
	
	public Page(long cursor, List<T> data){
		this.cursor = cursor;
		this.data = data;
		this.pageSize = data.size();
	}
	
	public Page(long cursor, List<T> data, int pageSize){
		this.cursor = cursor;
		this.data = data;
		this.pageSize = pageSize;
	}
	
	public Page(long cursor, List<T> data, int pageSize, long count){
		this.cursor = cursor;
		this.data = data;
		this.pageSize = pageSize;
		this.count = count;
	}
	
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public long getCount() {
		return count;
	}
	public void setCount(long count) {
		this.count = count;
	}
	public long getCursor() {
		return cursor;
	}
	public void setCursor(long cursor) {
		this.cursor = cursor;
	}
}
